//package com.after.saas.system.rocketmq.listener;
//
//import com.after.saas.mq.constants.Topics;
//import com.alibaba.fastjson.JSON;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
//import org.apache.rocketmq.spring.core.RocketMQListener;
//import org.springframework.stereotype.Service;
//
//
//@Slf4j
//@Service
//@RocketMQMessageListener(topic = Topics.TOPIC_DEMO, consumerGroup = "Group-" + Topics.TOPIC_DEMO)
//public class DemoMessageListener implements RocketMQListener<String> {
//
//    @Override
//    public void onMessage(String message) {
//        log.warn("message {}", JSON.toJSONString(message));
//        try {
//            System.out.println(5 / 0);
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//    }
//}
